<html lang="zh" xmlns:th="http://www.thymeleaf.org">

<!--新增环境弹出modal-->
<div th:fragment="env_add_modal" class="modal fade" id="env_add_modal" tabindex="-1" role="dialog"
     aria-labelledby="myModalLabelenv"
     aria-hidden="true" data-backdrop="static">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h4 class="modal-title" id="myModalLabelenv">新增测试环境</h4>
            </div>
            <div class="modal-body">
                <form id="env_add_form" class="form-horizontal">
                    <div class="alert alert-warning alert-dismissible fade in" role="alert"
                         style="display: none">
                        <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span
                                aria-hidden="true">×</span>
                        </button>
                        <strong>提示</strong> 输入信息错误，请检查！
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">环境名称</label>
                        <div class="col-sm-12">
                            <input name="envName" type="text" class="form-control" id="envName_a"
                                   placeholder="name">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">主机地址</label>
                        <div class="col-sm-12">
                            <input name="hostAddress" type="text" class="form-control" id="hostAddress_a"
                                   placeholder="description">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">描述</label>
                        <div class="col-sm-12">
                            <input name="hostDescription" type="text" class="form-control" id="hostDescription_a"
                                   placeholder="description">
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-2 control-label">状态</label>
                        <div class="col-sm-10">
                            <label>
                                <select class="form-control" name="isOpened">
                                    <option value="1">开启</option>
                                    <option value="0">关闭</option>
                                </select>
                            </label>
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                <button id="addEnvBtn" type="button" class="btn btn-primary">保存</button>
            </div>
        </div>
    </div>
</div>

<!--修改环境弹出modal-->
<div th:fragment="env_update_modal" class="modal fade" id="env_update_modal" tabindex="-1" role="dialog"
     aria-labelledby="myModalLabelenv_u"
     aria-hidden="true" data-backdrop="static">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h4 class="modal-title" id="myModalLabelenv_u">修改测试环境</h4>
            </div>
            <div class="modal-body">
                <form id="env_update_form" class="form-horizontal">
                    <div class="alert alert-warning alert-dismissible fade in" role="alert"
                         style="display: none">
                        <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span
                                aria-hidden="true">×</span>
                        </button>
                        <strong>提示</strong> 输入信息错误，请检查！
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">环境编号</label>
                        <div class="col-sm-12">
                            <input name="envId" type="text" class="form-control" id="envId_u"
                                   placeholder="id" readonly>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">环境名称</label>
                        <div class="col-sm-12">
                            <input name="envName" type="text" class="form-control" id="envName_u"
                                   placeholder="name">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">主机地址</label>
                        <div class="col-sm-12">
                            <input name="hostAddress" type="text" class="form-control" id="hostAddress_u"
                                   placeholder="description">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">描述</label>
                        <div class="col-sm-12">
                            <input name="hostDescription" type="text" class="form-control" id="hostDescription_u"
                                   placeholder="description">
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-2 control-label">状态</label>
                        <div class="col-sm-10">
                            <label>
                                <select id="isOpened_u" class="form-control" name="isOpened">
                                    <option value="1">开启</option>
                                    <option value="0">关闭</option>
                                </select>
                            </label>
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                <button id="updateEnvBtn" type="button" class="btn btn-primary">保存</button>
            </div>
        </div>
    </div>
</div>

</html>